package com.zlzkj.app.service;

import java.util.List;
import java.util.Map;

import com.zlzkj.app.mapper.GroupMapper;
import com.zlzkj.app.model.Group;
import com.zlzkj.core.sql.Row;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class GroupService {

    @Autowired
    private GroupMapper mapper;

    public List<Row> findByMap(Map<String,Object> map){
        return mapper.selectByMap(map);
    }

    public Group findById(String id){
        return mapper.selectByPrimaryKey(id);
    }

}
